Sha256: 8026e00f0c023db0c96aa4030c4cafae3165936db60891faa0be6b8d1dd9a35a

Contents?: true

Size: 387 Bytes

Versions: 6

Compression:

Stored size: 387 Bytes

Contents

as_attributes = <<-RUBY
def attributes
 ActiveSupport::HashWithIndifferentAccess.new(self.as_json).symbolize_keys
end
RUBY

to_methods = <<-RUBY
def to_mash
  Hashie::Mash.new(self)
end
RUBY

Pagy.class_eval(as_attributes)
Hash.class_eval(as_attributes)
Hash.class_eval(to_methods)
Hashie::Mash.class_eval(as_attributes)
ActiveSupport::HashWithIndifferentAccess.class_eval(as_attributes)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rider-kick-0.0.9 lib/generators/rider_kick/templates/config/initializers/hashie.rb.tt
rider-kick-0.0.8 lib/generators/rider_kick/templates/config/initializers/hashie.rb.tt
rider-kick-0.0.7 lib/generators/rider_kick/templates/config/initializers/hashie.rb.tt
rider-kick-0.0.6 lib/generators/rider_kick/templates/config/initializers/hashie.rb.tt
rider-kick-0.0.5 lib/generators/rider_kick/templates/config/initializers/hashie.rb.tt
rider-kick-0.0.4 lib/generators/rider_kick/templates/config/initializers/hashie.rb.tt