Sha256: c7f4c14d63682acd8b9d80ef117de4a1f64ac726bb1197ddea7de7496ebb928a

Contents?: true

Size: 612 Bytes

Versions: 14

Compression:

Stored size: 612 Bytes

Contents

require 'h/h'
require 'h/units'
require 'h/helpers'
require 'h/active_record_extensions'
require 'h/fields'

# Define xxxx_h field declarators for Model classes
if defined?(ActiveRecord::Base)
  ActiveRecord::Base.extend H::ActiveRecordExtensions
end

# Add controller & view xxx_to_h/xxx_from_h helpers
if defined?(ActionController::Base)
   class ActionController::Base
     include H::Helpers
   end
   ActionController::Base.helper_method *H::Helpers.instance_methods
end

# Make same helpers accessible with the H prefix from elsewhere
# (not really needed; can use H.to/H.from instead)
H.extend H::Helpers

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
modalh-1.1.9 lib/modalh.rb
modalh-1.1.8 lib/modalh.rb
modalh-1.1.7 lib/modalh.rb
modalh-1.1.6 lib/modalh.rb
modalh-1.1.5 lib/modalh.rb
modalh-1.1.4 lib/modalh.rb
modalh-1.1.3 lib/modalh.rb
modalh-1.1.2 lib/modalh.rb
modalh-1.1.1 lib/modalh.rb
modalh-1.0.5 lib/modalh.rb
modalh-1.0.4 lib/modalh.rb
modalh-1.0.3 lib/modalh.rb
modalh-1.0.1 lib/modalh.rb
modalh-1.0.0 lib/modalh.rb