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
263 264 265 |
# File 'lib/nested.rb', line 263 def create_resource(name, singleton, collection, &block) angularize(super) end |
#nested_angular_config(config = nil) ⇒ Object
267 268 269 270 271 272 273 |
# File 'lib/nested.rb', line 267 def nested_angular_config(config=nil) if config @nested_angular_config = config else @nested_angular_config ||= {} end end |