Skip to content

Commit

Permalink
docs for resource helper
Browse files Browse the repository at this point in the history
  • Loading branch information
slawosz committed Jan 14, 2012
1 parent a9f13c8 commit a24520a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/helpers/rails_panel/resources_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,27 @@ def table_attributes_keys
current_model.table_attributes_keys
end

# Current model attributes. Use this method to customize form. By default it delegates
def form_attributes
current_model.form_attributes
end

# Current model attributes. Use this method to select or order fields in form. By default it delegates
def form_attributes_keys
current_model.form_attributes_keys
end

# Current model attributes. Use this method to display or reorder fields in show action. By default it delegates
def show_attributes_keys
current_model.show_attributes_keys
end

# Current model attributes. Use this method to customize attributes for all views in this controller. By default it delegates
def show_attributes
current_model.show_attributes
end

# Current model attributes. Use this method to customize attributes for all views in this controller. By default it delegates
def attributes
current_model.attributes
end
Expand Down

0 comments on commit a24520a

Please sign in to comment.