Sha256: d84a9a2c2e520aca98fe3d54000a739cd8bff3304b5bd2d86168bfd0c657ac66

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

module AppFrame
  module ViewMethods
    def self.included(klass)
      klass.extend(ClassMethods)
    end

    def editable_attributes_for(klass)
      klass.column_names - ['id', 'created_at', 'updated_at', 'type']
    end

    def attributes_for(klass)
      klass.column_names
    end

    module ClassMethods

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
app_frame-0.6.1 lib/app_frame/view_methods.rb
app_frame-0.5.8 lib/app_frame/view_methods.rb
app_frame-0.5.7 lib/app_frame/view_methods.rb
app_frame-0.5.6 lib/app_frame/view_methods.rb
app_frame-0.5.5 lib/app_frame/view_methods.rb