Class: NitroRails::Record
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- NitroRails::Record
- Extended by:
- BroadcastableModel
- Includes:
- BroadcastableRecord
- Defined in:
- app/models/nitro_rails/record.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from BroadcastableModel
action_broadcasts, attribute_broadcasts, broadcast_affiliations, broadcast_on_action, broadcast_on_attribute, broadcast_on_create, broadcast_on_delete, broadcast_on_update, collection_tag, skip_attribute_broadcasting, skipped_attributes, status_attributes, template, type, use_default_broadcasts!, use_refresh_broadcasts!
Methods included from BroadcastableRecord
#affiliation_keys, #affiliations, #attribute_broadcasts, #attribute_effects, #attribute_effects_string, #belongs_to, #broadcast, #broadcast_create, #broadcast_delete, #broadcast_update, #collection_tag, #nitro_id, #path_for_record, #resource_id, #skipped_attributes, #status_attribute?, #status_attributes, #template, #template?, #temporary_id, #type
Methods included from DefaultBroadcasts
#append_to_affiliated_lists, #broadcast_attribute, #broadcast_to_user_later, #broadcast_to_user_or_public_later, #focus_on_new_resource, #insert_into_affiliated_lists, #nitro_data_id, #partial_path, #redirect_to_index, #refresh_affiliatied_lists, #refresh_page, #remove_everywhere, #replace_attribute_content, #toggle_checkbox, #toggle_resource_attribute_class, #update_associated_attributes
Class Method Details
.route ⇒ Object
18 19 20 |
# File 'app/models/nitro_rails/record.rb', line 18 def self.route @route end |
.route_to(action) ⇒ Object
14 15 16 |
# File 'app/models/nitro_rails/record.rb', line 14 def self.route_to(action) @route ||= "/#{action.to_s.pluralize}" end |
Instance Method Details
#route ⇒ Object
22 23 24 |
# File 'app/models/nitro_rails/record.rb', line 22 def route self.class.route || polymorphic_path(self) end |