Move lib/paiement_cic_helper to lib/paiement_cic/form_helper

3.0
Benoit Garret 2011-06-23 15:32:23 +02:00
parent d9c53853ed
commit cca9e3a7da
4 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@ script/plugin install git://github.com/novelys/paiementcic.git
### in order controller :
helper :paiement_cic
helper :'paiement_cic/form'
### in the payment by card view :

View File

@ -1,2 +1,2 @@
require "paiement_cic"
require "paiement_cic_helper"
require "paiement_cic/form_helper"

View File

@ -14,6 +14,8 @@ class String
end
class PaiementCic
autoload :FormHelper, "paiement_cic/form_helper"
@@version = "3.0" # clé extraite grâce à extract2HmacSha1.html fourni par le Crédit Mutuel
cattr_accessor :version

View File

@ -1,5 +1,5 @@
## refactor this
module PaiementCicHelper
module PaiementCic::FormHelper
def paiement_cic_hidden_fields(order, price, order_transaction, options = {})
oa = PaiementCic.config(price, order_transaction.reference)