Module: Cms::Behaviors::Connecting::MacroMethods
- Defined in:
- lib/cms/behaviors/connecting.rb
Instance Method Summary collapse
Instance Method Details
#connectable? ⇒ Boolean
8 9 10 |
# File 'lib/cms/behaviors/connecting.rb', line 8 def connectable? !!@is_connectable end |
#is_connectable(options = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/cms/behaviors/connecting.rb', line 11 def is_connectable(={}) @is_connectable = true extend ClassMethods include InstanceMethods attr_accessor :connect_to_page_id attr_accessor :connect_to_container attr_accessor :connected_page has_many :connectors, :as => :connectable attr_accessor :updated_by_page after_create :connect_to_page after_save :update_connected_pages end |