class CmAdmin::Models::Action
Attributes
layout[RW]
name[RW]
page_description[RW]
page_title[RW]
partial[RW]
path[RW]
verb[RW]
Public Class Methods
find_by(model, search_hash)
click to toggle source
# File lib/cm_admin/models/action.rb, line 16 def find_by(model, search_hash) model.available_actions.find { |i| i.name == search_hash[:name] } end
new(attributes = {})
click to toggle source
# File lib/cm_admin/models/action.rb, line 9 def initialize(attributes = {}) attributes.each do |key, value| self.send("#{key.to_s}=", value) end end