objectify_params 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/objectify_params.rb +13 -0
  2. metadata +47 -0
@@ -0,0 +1,13 @@
1
+ module ObjectifyParams
2
+ extend ActiveSupport::Concern
3
+
4
+ included do
5
+ before_filter :load_params
6
+ end
7
+
8
+ protected
9
+
10
+ def load_params
11
+ @objectified_params = OpenStruct.new(params)
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: objectify_params
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Amit Suryavanshi, Yashasree Barve, Souranil Sen, Twinkal Savani, Priya Joshi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-02-19 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: A gem to objectify parameters
15
+ email: ! 'amitbsuryavanshi@gmail.com, yashasree.barve@gmail.com, souranil.sen@gmail.com,
16
+ twinkal.savani@gmail.com, priya.joshi@gmail.com '
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/objectify_params.rb
22
+ homepage: http://rubygems.org/gems/objectify_params
23
+ licenses:
24
+ - MIT
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 1.8.25
44
+ signing_key:
45
+ specification_version: 3
46
+ summary: A gem to objectify parameters
47
+ test_files: []