Move lib/paiement_cic_helper to lib/paiement_cic/form_helper
parent
d9c53853ed
commit
cca9e3a7da
|
@ -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 :
|
||||
|
||||
|
|
2
init.rb
2
init.rb
|
@ -1,2 +1,2 @@
|
|||
require "paiement_cic"
|
||||
require "paiement_cic_helper"
|
||||
require "paiement_cic/form_helper"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
Loading…
Reference in New Issue