Module: Nested::Angular::Sinatra
- Defined in:
- lib/nested.rb
Instance Method Summary collapse
- #create_resource(name, singleton, collection, &block) ⇒ Object
- #nested_angular_config(config = nil) ⇒ Object
Instance Method Details
#create_resource(name, singleton, collection, &block) ⇒ Object
256 257 258 |
# File 'lib/nested.rb', line 256 def create_resource(name, singleton, collection, &block) angularize(super) end |
#nested_angular_config(config = nil) ⇒ Object
260 261 262 263 264 265 266 |
# File 'lib/nested.rb', line 260 def nested_angular_config(config=nil) if config @nested_angular_config = config else @nested_angular_config ||= {} end end |